package com.yuanfeng.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.order.dto.PaymentVocherDTO;
import com.yuanfeng.order.entity.OrderPaymentVocherEntity;
import com.yuanfeng.order.vo.OdbPaymentVocherVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity com.yuanfeng.order.entity.OrderPaymentVocher
 */
@Mapper
public interface OrderPaymentVocherMapper extends BaseMapper<OrderPaymentVocherEntity> {

    /**
     * 更新付款
     *
     * @param param
     * @return
     */
    Integer updatePaymentVocher(@Param("param") PaymentVocherDTO param);

    /**
     * 新增付款
     *
     * @param param
     * @return
     */
    Integer insertPaymentVocher(@Param("param") PaymentVocherDTO param);

    /**
     * 查询线下支付的审核状态
     * @param orderId
     * @return
     */
    OdbPaymentVocherVO queryPaymentVocher(@Param("orderId")String orderId);
}




